<!DOCTYPE html>
<html lang="en">
  <head>
    <script type="text/javascript">
      const parts = window.location.pathname.split('/');
      const page = parts.pop();
      const leading = parts.join('/') || '/';
      window.location.replace(
        leading +
          '?p=' +
          page +
          (window.location.search ? '&' + window.location.search.slice(1) : '')
      );
    </script>
  </head>

  <body></body>
</html>
